<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>Alignment Specification</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">Alignment Specification</p>
<hr class="separator">
<div class="content">In many ChartDirector objects, you may specify the alignment of the object's content relative to its boundary. For example, for a <a href="TextBox.htm">TextBox</a> object, you may specify the text's alignment relative to the box boundary by using <a href="TextBox.setAlignment.htm">TextBox.setAlignment</a>.<br><br>
The ChartDirector API defines several constants for the alignment options.<br><br>
<div style="width:100%;box-sizing:border-box;"><table width="100%" border="1" cellpadding="5" cellspacing="0"> <tr><th width="19%">Constant<th width="19%%">Value<th>Description <tr><td><a href="Chart.BottomLeft.htm">BottomLeft</a><td>1<td>The leftmost point on the bottom line. <tr><td><a href="Chart.BottomCenter.htm">BottomCenter</a><td>2<td>The center point on the bottom line. <tr><td><a href="Chart.BottomRight.htm">BottomRight</a><td>3<td>The rightmost point on the bottom line. <tr><td><a href="Chart.Left.htm">Left</a><td>4<td>The leftmost point on the middle horizontal line. <tr><td><a href="Chart.Center.htm">Center</a><td>5<td>The center point on the middle horizontal line. <tr><td><a href="Chart.Right.htm">Right</a><td>6<td>The rightmost point on the middle horizontal line. <tr><td><a href="Chart.TopLeft.htm">TopLeft</a><td>7<td>The leftmost point on the top line. <tr><td><a href="Chart.TopCenter.htm">TopCenter</a><td>8<td>The center point on the top line. <tr><td><a href="Chart.TopRight.htm">TopRight</a><td>9<td>The rightmost point on the top line. <tr><td><a href="Chart.Bottom.htm">Bottom</a><td>2<td>The center point on the bottom line. Same as BottomCenter. <tr><td><a href="Chart.Top.htm">Top</a><td>8<td>The center point on the top line. Same as TopCenter.
<tr><td><a href="Chart.TopLeft2.htm">TopLeft2</a><td>10<td>An alternative top-left position used in <a href="Axis.setTitlePos.htm">Axis.setTitlePos</a> for axis title positioning only. For a vertical axis, TopLeft2 refers to refers to the left of the top side, while TopLeft refers to the top of the left side. The reverse applies for a horizontal axis.
<tr><td><a href="Chart.TopRight2.htm">TopRight2</a><td>11<td>An alternative top-right position used in <a href="Axis.setTitlePos.htm">Axis.setTitlePos</a> for axis title positioning only. For a vertical axis, TopRight2 refers to refers to the right of the top side, while TopRight refers to the top of the right side. The reverse applies for a horizontal axis.
<tr><td><a href="Chart.BottomLeft2.htm">BottomLeft2</a><td>12<td>An alternative bottom-left position used in <a href="Axis.setTitlePos.htm">Axis.setTitlePos</a> for axis title positioning only. For a vertical axis, BottomLeft2 refers to refers to the left of the bottom side, while BottomLeft refers to the bottom of the left side. The reverse applies for a horizontal axis.
<tr><td><a href="Chart.BottomRight2.htm">BottomRight2</a><td>13<td>An alternative bottom-right position used in <a href="Axis.setTitlePos.htm">Axis.setTitlePos</a> for axis title positioning only. For a vertical axis, BottomRight2 refers to refers to the right of the bottom side, while BottomRight refers to the bottom of the right side. The reverse applies for a horizontal axis.
</table></div></div><br>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div></body>
</HTML>
